# @Version : 1.0
# @Author  : 刘宇
# @File    : 26_slice_exercise.py
# @Time    : 2025/10/13 20:25

list_name=["Jack","Lisa","Hsp","Paul","Smith","Kobe"]

#取出前三个名字
list_name_slice01=list_name[0:3:1]
print("list_name_slice01:", list_name_slice01)

#取出后三个名字
# list_name_slice02=list_name[3:6:1]
# print("list_name_slice02:", list_name_slice02)

slice_b=list_name[-1:-4:-1]
slice_b.reverse()
print("取出后三个名字：", slice_b)

